package com.cq.oa.domain.wfc;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import oa.base.hibernate.BaseClass;
@Entity
@Table(name = "wfc_activity")
public class Activity extends BaseClass {
    
	
	/**
	 * lilang
	 * 2013-10-19下午1:41:26
	 */
	private static final long serialVersionUID = -5904548588558495436L;
	
	@Transient
	private Long oldId;
	
	@Column(name = "CLAZZ")
	private String clazz;

	@Column(name = "NAME")
	private String name;

	@Column(name = "ALIAS")
	private String alias;

	@Column(name = "PROCESS_DEFINITION_SID")
	private Long processDefinitionSid;

	@Column(name = "CREATE_TASKS")
	private Integer createTasks;

	@Column(name = "POSITION")
	private String position;

	@Column(name = "IS_ASYNC")
	private Integer isAsync;

	@Column(name = "IS_BLOCKING")
	private Integer isBlocking;

	@Column(name = "DESCRIPTION")
	private String description;

	@Column(name = "URL")
	private String url;

	@Column(name = "TYPE")
	private Long type;

	@Column(name = "CSS_STYLE")
	private String cssStyle;

	@Column(name = "CSS_CLASS")
	private String cssClass;

	@Column(name = "DURATION")
	private Long duration;

	@Column(name = "ACTIVITY_KEY")
	private Long activityKey;

	@Column(name = "IS_MULTI_TASK")
	private Integer isMultiTask;

	@Column(name = "IS_VOTE")
	private Integer isVote;

	@Column(name = "VOTE_RATE")
	private String voteRate;

	@Transient
	private List<ActivityParticipation> activityParticipationList;
	
	
    

    public List<ActivityParticipation> getActivityParticipationList() {
		return activityParticipationList;
	}

	public void setActivityParticipationList(
			List<ActivityParticipation> activityParticipationList) {
		this.activityParticipationList = activityParticipationList;
	}

	public Long getOldId() {
		return oldId;
	}

	public void setOldId(Long oldId) {
		this.oldId = oldId;
	}

	public String getCssStyle() {
		return cssStyle;
	}

	public void setCssStyle(String cssStyle) {
		this.cssStyle = cssStyle;
	}

	public String getCssClass() {
		return cssClass;
	}

	public void setCssClass(String cssClass) {
		this.cssClass = cssClass;
	}

	public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz == null ? null : clazz.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public Long getProcessDefinitionSid() {
        return processDefinitionSid;
    }

    public void setProcessDefinitionSid(Long processDefinitionSid) {
        this.processDefinitionSid = processDefinitionSid;
    }

    public Integer getCreateTasks() {
        return createTasks;
    }

    public void setCreateTasks(Integer createTasks) {
        this.createTasks = createTasks;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public Integer getIsAsync() {
        return isAsync;
    }

    public void setIsAsync(Integer isAsync) {
        this.isAsync = isAsync;
    }

    public Integer getIsBlocking() {
        return isBlocking;
    }

    public void setIsBlocking(Integer isBlocking) {
        this.isBlocking = isBlocking;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public Long getActivityKey() {
        return activityKey;
    }

    public void setActivityKey(Long activityKey) {
        this.activityKey = activityKey;
    }

    public Integer getIsMultiTask() {
        return isMultiTask;
    }

    public void setIsMultiTask(Integer isMultiTask) {
        this.isMultiTask = isMultiTask;
    }

    public Integer getIsVote() {
        return isVote;
    }

    public void setIsVote(Integer isVote) {
        this.isVote = isVote;
    }

    public String getVoteRate() {
        return voteRate;
    }

    public void setVoteRate(String voteRate) {
        this.voteRate = voteRate == null ? null : voteRate.trim();
    }
}